


<div class="right">
	<div id="columns1">
		<ul id="column2" class="main">
			<li class="widget1 color-green1" id="widget12">
				<div class="widget1-head">
					<h3>
						修改登录密码
					</h3>
				</div>
				<div class="widget1-content"><br/>
<h3>* 请修改设置您的登入密码</h3>
		<form action="<?=$this->config->item('site_url');?>user/changePwd"  method="post" id="uppwd" name="uppwd">
			<table>
			   <tr>
			      <td>用户名：</td>
			      <td><?=$this->session->userdata('user_name')?></td>
			   </tr>
			   <tr>
			      <td>原密码：</td>
			      <td><input  type="password" name="oldPwd"/></td>
			   </tr>
			   <tr>
			      <td>新密码：</td>
			      <td><input  type="password" name="newPwd" id="newPwd"/></td>
			   </tr>
			   <tr>
			      <td>请再次输入新密码：</td>
			      <td><input type="password" id="repeatNewPwd"></td>

			   </tr>
			</table>

			<div>				<center><strong style="font-fiamlly:'宋体'; font-size:12px;"><input type="button" value="确认修改" onClick="savePwd()"
							style="border: 1px #FFFFFF solid; background: #efefef;style=cursor:pointer" /></strong></center></div>
							</form>
	</div>
	</li>
	</ul>
	</div>
</div>
</div>
</div>
</div>
	<SCRIPT language=javascript type="text/javascript">
		function savePwd(){
			var newPwd = document.getElementById("newPwd").value;
			var repeatNewPwd = document.getElementById("repeatNewPwd").value;
			if(newPwd.length<8){
			alert("密码位数不能小于8位");
			}else
			if(newPwd!=repeatNewPwd){
				alert("两次输入密码不相同！");
			}else{
				document.uppwd.submit();
			}
		}

	</SCRIPT>
